Skip to content

Comments

MINOR: Cleanup ControllerContext and StateChangeLogger#18588

Merged
ijuma merged 1 commit intoapache:trunkfrom
frankvicky:clean-up-controller-context-and-state-change-logger
Jan 22, 2025
Merged

MINOR: Cleanup ControllerContext and StateChangeLogger#18588
ijuma merged 1 commit intoapache:trunkfrom
frankvicky:clean-up-controller-context-and-state-change-logger

Conversation

@frankvicky
Copy link
Contributor

These methods were previously invoked by ZK components, but we have just removed them.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs labels Jan 17, 2025
@frankvicky frankvicky changed the title MINOR: Cleanup ControllerCOntext and StateChangeLogger MINOR: Cleanup ControllerContext and StateChangeLogger Jan 17, 2025
@chia7712
Copy link
Member

we can remove the ControllerContext.scala after https://issues.apache.org/jira/browse/KAFKA-18427 gets resolved

@frankvicky frankvicky force-pushed the clean-up-controller-context-and-state-change-logger branch 2 times, most recently from 8daee0c to 2cad365 Compare January 21, 2025 02:31
@ijuma
Copy link
Member

ijuma commented Jan 21, 2025

KAFKA-18427 has been resolved.

@frankvicky frankvicky force-pushed the clean-up-controller-context-and-state-change-logger branch from 2cad365 to 3da4236 Compare January 21, 2025 03:22
@frankvicky
Copy link
Contributor Author

Hi @ijuma
Thanks for the reminder.
I have updated the patch.

createTopicWithAssignment(topic2, partitionReplicaAssignment = topic2Assignment.map { case (k, v) => k -> v.replicas })
createTopicWithAssignment(topic3, partitionReplicaAssignment = topic3Assignment.map { case (k, v) => k -> v.replicas })
createTopicWithAssignment(topic4, partitionReplicaAssignment = topic4Assignment.map { case (k, v) => k -> v.replicas })
createTopicWithAssignment(topic1, partitionReplicaAssignment = topic1Assignment.map { case (k, v) => k -> v.head })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we always only use the head of the list - can we remove the List wrapper altogether?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@frankvicky frankvicky force-pushed the clean-up-controller-context-and-state-change-logger branch from 3da4236 to e965a8e Compare January 21, 2025 03:41
Copy link
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@ijuma ijuma merged commit a3da6bb into apache:trunk Jan 22, 2025
9 checks passed
@github-actions github-actions bot removed the triage PRs from the community label Jan 22, 2025
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
These methods were previously invoked by ZK components, but we have just removed them.

Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
airlock-confluentinc bot pushed a commit to confluentinc/kafka that referenced this pull request Jan 27, 2025
These methods were previously invoked by ZK components, but we have just removed them.

Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
These methods were previously invoked by ZK components, but we have just removed them.

Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved core Kafka Broker small Small PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants